package org.apache.dolphinscheduler.api.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.dolphinscheduler.dao.entity.UserGroupWorker;

import java.util.Date;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class WorkerGroupDto {

    private int id;

    private String name;

    private String addrList;

    private Date createTime;

    private Date updateTime;

    private boolean systemDefault;
    private double cpuUsage;
    private double memoryUsage;

    private int central;

    private int node;

    private String connectedList;


    private int workerWaitingTaskCount;
    private double reservedMemory;

    private int cpuNum = 0;
    private Long memorySize = 0L;
    private Long systemTotal = 0L;
    private Long systemUsed = 0L;
    private Long dataTotal = 0L;
    private Long dataUsed = 0L;

    private String architecture;

    private int virtualMachine = 0;
    private int physicalMachine = 0;

    private List<UserGroupWorker> userGroups;
}
